package com.user;

import java.util.HashMap;

import com.databasefunction.AllDBFunction;

public class ViewUserFunction {
	public HashMap getUssersdata(){
		HashMap usermap = new HashMap();
		HashMap eachusermap = new HashMap();
		
		eachusermap.put("role", "admin");
		eachusermap.put("username", "adminuser");
		eachusermap.put("password", "pass");
		usermap.put("adminuser", eachusermap);
		
		eachusermap = new HashMap();
		eachusermap.put("role", "superadmin");
		eachusermap.put("username", "superadminuser");
		eachusermap.put("password", "superpass");
		usermap.put("superadminuser", eachusermap);
		
		eachusermap = new HashMap();
		eachusermap.put("role", "wmc");
		eachusermap.put("username", "wmcuser");
		eachusermap.put("password", "wmcpass");
		usermap.put("wmcuser", eachusermap);
		
		eachusermap = new HashMap();
		eachusermap.put("role", "lab");
		eachusermap.put("username", "labuser");
		eachusermap.put("password", "labpass");
		usermap.put("labuser", eachusermap);
		
		AllDBFunction allDBFunction = new AllDBFunction();
		usermap = allDBFunction.getAllUserList();
		return usermap;
	}
}
